package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.productionPlan.model.entity.ProQualityTask;
import com.wing.productionPlan.model.request.ProQualityTaskAddForm;
import com.wing.productionPlan.model.response.ProQualityTaskVo;

import java.util.Map;

/**
 * 首件检测任务-Service
 *
 * @author
 */
public interface ProQualityTaskService extends IService<ProQualityTask> {

    /**
     * 查询
     * @param pg
     * @param map
     * @return
     */
    Page<ProQualityTaskVo> pageList4app(Page<ProQualityTaskVo> pg, Map map);

    /**
     * 添加质检任务
     * @param proQualityTaskAddForm
     * @return
     */
    int add(ProQualityTaskAddForm proQualityTaskAddForm);

    /**
     * 关闭任务
     * @param id
     * @return
     */
    boolean closeTask(Long id);
}
